package com.oo.abstractAndInterface_6.bicycle;

/**
 * Bicycle--${description}
 *
 * @author: Jovi
 * @createTime: 2017-04-13 11:26
 **/
public abstract class Bicycle {

    private String name;

    private String color;

    private int wheelNum;

    private int seatNum;

    public Bicycle() {

        wheelNum = 2;
        seatNum = 1;
    }

    public Bicycle(String name, String color) {
        this();
        this.color = color;
        this.name = name;
    }

    public Bicycle(String name, String color, int wheelNum, int seatNum) {
        this.name = name;
        this.color = color;
        this.wheelNum = wheelNum;
        this.seatNum = seatNum;
    }

    public abstract void run();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getWheelNum() {
        return wheelNum;
    }

    public void setWheelNum(int wheelNum) {
        this.wheelNum = wheelNum;
    }

    public int getSeatNum() {
        return seatNum;
    }

    public void setSeatNum(int seatNum) {
        this.seatNum = seatNum;
    }
}
